package org.fing.edu.uy.esbadp.mbeanServices;

import org.fing.edu.uy.esbadp.modules.cache.CacheManagerFactory;

public class EsbAdaptativeCacheServices implements EsbAdaptativeCacheServicesMBean {

	@Override
	public long getCacheMiss(String serviceCategoryName, String serviceName) {
		long misses = CacheManagerFactory.getCacheManager().getCacheMiss(serviceCategoryName, serviceName);
		return misses;
	}

	@Override
	public long getCacheHit(String serviceCategoryName, String serviceName) {
		long hits = CacheManagerFactory.getCacheManager().getCacheHit(serviceCategoryName, serviceName);
		return hits;
	}
	
}
